package com.example.ibsp_demo.mapper.message;

import com.example.ibsp_demo.pojo.entity.message.ActivityNotification;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface ActivityNotificationMapper {

    // 插入活动通知
    int insert(ActivityNotification notification);

    // 查询用户收到的活动通知
    List<ActivityNotification> selectActivitys(Integer userId);

    // 标记活动通知为已读
    int markAsRead(int activityId);
}
